<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- extend -->
    <div class="app">
        <!-- <h1>{{msg}}</h1> -->
    </div>
    <script src="../js/vue.js"></script>
    <script>
        /* let vm = new Vue({
            el:'.app',
            data:{
                msg:'李博俊'
            }
        }) */

        let  Test = Vue.extend({
            data() {
                return {
                    msg:'硕硕干什么呢！！'
                }
            },
            template:'<h1>{{msg}}</h1>'
        })
        //Test是Vue子类  实例对象 new Test     $mount  Vue实例上的方法
        new Test().$mount('.app');
    </script>
</body>
</html>